package com.offcn.domain;

import java.util.Date;
/**
对应product表实体类
 */
public class Product {
/*
根据JavaBean原则，构建实体类
 */
    private String pid;//商品ID
    private String pname;//名称
    private double market_price;//市场价
    private double shop_price;//零售价
    private Date pdate;//生产日期
    private String pdesc;//详细描述

    public String getPid() {

        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getMarket_price() {
        return market_price;
    }

    public void setMarket_price(double market_price) {
        this.market_price = market_price;
    }

    public double getShop_price() {
        return shop_price;
    }

    public void setShop_price(double shop_price) {
        this.shop_price = shop_price;
    }

    public Date getPdate() {
        return pdate;
    }

    public void setPdate(Date pdate) {
        this.pdate = pdate;
    }

    public String getPdesc() {
        return pdesc;
    }

    public void setPdesc(String pdesc) {
        this.pdesc = pdesc;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid='" + pid + '\'' +
                ", pname='" + pname + '\'' +
                ", market_price=" + market_price +
                ", shop_price=" + shop_price +
                ", pdate=" + pdate +
                ", pdesc='" + pdesc + '\'' +
                '}';
    }
}
